import service from '@/utils/request'

const MerchantNoApi = {
  // ---------------安全设备----------------
  addMerchantNo: function (data) {
    return service.post('mchInfo', data)
  },
  deleteMerchantNo: function (data) {
    return service.put('mchInfo/delete', data)
  },
  editMerchantNo: function (data) {
    return service.put('mchInfo', data)
  },
  listMerchantNo: function (data) {
    return service.get('mchInfo/page', {params: data })
  },
  getMerchantNoInfo: function (data) {
    return service.get('mchInfo', {params: data })
  },
  listMchNoIdName(data){
    // 商户号的id和名字列表
    return service.get("mchInfo/listIdName",{params:data})
  },

}

export default MerchantNoApi
